﻿using FluentNHibernate.Mapping;
using Lokad.Monitoring.Persistence.Entities;

namespace Lokad.Monitoring.Persistence.Mappings
{
    public class ResponseMap : ClassMap<Response>
    {
        public ResponseMap()
        {
            Id(x => x.Id);
            References(x => x.Endpoint).Not.Nullable();
            Map(x => x.Retrieved).Not.Nullable();
            Map(x => x.Data).Length(2000000000).Not.Nullable();
        }
    }
}
